<?php
class test
{
	function hell(){
		echo "fdsaf";
	}
}
//$a = "fdsafds";
$br = (php_sapi_name() == "cli")? "":"<br>";

if(!extension_loaded('returnvalue')) {
	dl('php_returnvalue.' . PHP_SHLIB_SUFFIX);
}
$module = 'returnvalue';
$functions = get_extension_funcs($module);
echo "Functions available in the test extension:$br\n";
foreach($functions as $func) {
    echo $func ."   ";
	if ($func == "returnObject" || $func =="return_reference_a")continue;
	eval("var_dump( $func() );");
	echo "$br\n";
}
echo "$br\n";
/*
$function = 'confirm_' . $module . '_compiled';
if (extension_loaded($module)) {
	$str = $function($module);
} else {
	$str = "Module $module is not compiled into PHP";
}*/

$b = &return_reference_a();
//$b = "php";

var_dump($a);
var_dump($b);

$o = returnObject();
var_dump($o);
//echo "$str\n";
?>
